<?php
echo '<br><h3>Update theme for user '.$user;
$query=mysql_query("SELECT * FROM tblTheme WHERE user = '$user'");
$rows = mysql_fetch_array($query);

echo '<form action="system/themeu.php" method="POST"><center><Table Border = 1>';
echo '<tr><td><p align=right><input type="hidden" name=id value='.$rows[ID].'></td></tr>';
echo '<tr><td><p align=right>Text Colour : <input type=text name=text value='.$rows[Text].'></td></tr>';
echo '<tr><td><p align=right>Text Font : <input type=text name=textfont value='.$rows[bodyfont].'></td></tr>';
echo '<tr><td><p align=right>Text Size : <input type=text name=textsize value='.$rows[bodyfontsize].'></td></tr>';
echo '<tr><td><p align=right>Background colour : <input type=text name=mainbackground value='.$rows['mainBackground'].'></td></tr>';
echo '<tr><td><p align=right>1st Line colour : <input type=text name=firstline value='.$rows['1stLine'].'></td></tr>';
echo '<tr><td><p align=right>2nd Line colour : <input type=text name=secondline value='.$rows['2ndLine'].'></td></tr>';
echo '<tr><td><p align=right>On hold colour : <input type=text name=onhold value='.$rows['onHold'].'></td></tr>';
echo '<tr><td><p align=right>Pending colour : <input type=text name=pending value='.$rows['Pending'].'></td></tr>';
echo '<tr><td><p align=right>Out of hours colour : <input type=text name=outofhours value='.$rows['outOfHours'].'></td></tr>';
echo '<tr><td><p align=right>Selector colour : <input type="text" name="selector" value="'.$rows['selector'].'"></td></tr>';
echo '<tr><td><p align=right>top row colour : <input type="text" name="toprow" value="'.$rows['toprow'].'"></td></tr>';

echo '<tr><td><p align=center><INPUT type="submit" value="Update"></td></tr></table></form>';
?>
